home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMUserDataHandler.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  102 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMUserDataHandler.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMUserDataHandler_h__
  6. #define __gen_nsIDOMUserDataHandler_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIVariant_h__
  14. #include "nsIVariant.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIDOMUserDataHandler */
  23. #define NS_IDOMUSERDATAHANDLER_IID_STR "5470deff-03c9-41b7-a824-e3225266b343"
  24.  
  25. #define NS_IDOMUSERDATAHANDLER_IID \
  26.   {0x5470deff, 0x03c9, 0x41b7, \
  27.     { 0xa8, 0x24, 0xe3, 0x22, 0x52, 0x66, 0xb3, 0x43 }}
  28.  
  29. class NS_NO_VTABLE nsIDOMUserDataHandler {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMUSERDATAHANDLER_IID)
  33.  
  34.   enum { NODE_CLONED = 1U };
  35.  
  36.   enum { NODE_IMPORTED = 2U };
  37.  
  38.   enum { NODE_DELETED = 3U };
  39.  
  40.   enum { NODE_RENAMED = 4U };
  41.  
  42.   /* void handle (in unsigned short operation, in DOMString key, in nsIVariant data, in nsIDOMNode src, in nsIDOMNode dst); */
  43.   NS_IMETHOD Handle(PRUint16 operation, const nsAString & key, nsIVariant *data, nsIDOMNode *src, nsIDOMNode *dst) = 0;
  44.  
  45. };
  46.  
  47. /* Use this macro when declaring classes that implement this interface. */
  48. #define NS_DECL_NSIDOMUSERDATAHANDLER \
  49.   NS_IMETHOD Handle(PRUint16 operation, const nsAString & key, nsIVariant *data, nsIDOMNode *src, nsIDOMNode *dst); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIDOMUSERDATAHANDLER(_to) \
  53.   NS_IMETHOD Handle(PRUint16 operation, const nsAString & key, nsIVariant *data, nsIDOMNode *src, nsIDOMNode *dst) { return _to Handle(operation, key, data, src, dst); } 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  56. #define NS_FORWARD_SAFE_NSIDOMUSERDATAHANDLER(_to) \
  57.   NS_IMETHOD Handle(PRUint16 operation, const nsAString & key, nsIVariant *data, nsIDOMNode *src, nsIDOMNode *dst) { return !_to ? NS_ERROR_NULL_POINTER : _to->Handle(operation, key, data, src, dst); } 
  58.  
  59. #if 0
  60. /* Use the code below as a template for the implementation class for this interface. */
  61.  
  62. /* Header file */
  63. class nsDOMUserDataHandler : public nsIDOMUserDataHandler
  64. {
  65. public:
  66.   NS_DECL_ISUPPORTS
  67.   NS_DECL_NSIDOMUSERDATAHANDLER
  68.  
  69.   nsDOMUserDataHandler();
  70.  
  71. private:
  72.   ~nsDOMUserDataHandler();
  73.  
  74. protected:
  75.   /* additional members */
  76. };
  77.  
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsDOMUserDataHandler, nsIDOMUserDataHandler)
  80.  
  81. nsDOMUserDataHandler::nsDOMUserDataHandler()
  82. {
  83.   /* member initializers and constructor code */
  84. }
  85.  
  86. nsDOMUserDataHandler::~nsDOMUserDataHandler()
  87. {
  88.   /* destructor code */
  89. }
  90.  
  91. /* void handle (in unsigned short operation, in DOMString key, in nsIVariant data, in nsIDOMNode src, in nsIDOMNode dst); */
  92. NS_IMETHODIMP nsDOMUserDataHandler::Handle(PRUint16 operation, const nsAString & key, nsIVariant *data, nsIDOMNode *src, nsIDOMNode *dst)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96.  
  97. /* End of implementation class template. */
  98. #endif
  99.  
  100.  
  101. #endif /* __gen_nsIDOMUserDataHandler_h__ */
  102.